package org.example.group5back.mapper;


import org.example.group5back.entity.MaterialEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface MaterialMapper {
    public List<MaterialEntity> findAllMaterial();
    public boolean updateMaterial(MaterialEntity material);
    public boolean insertMaterial(MaterialEntity material);
    public boolean deleteMaterial(int id);
    public void updateAfterDelete(int id);
    public List<MaterialEntity> showAll();

    public List<MaterialEntity> selectByName(@Param("material_name") String material_name, @Param("material_productiondate") String material_productiondate,@Param("material_factorysite") String material_factorysite,@Param("material_type") String material_type);

}
